[Unit]
Description=Flanneld overlay address etcd agent
After=network.target
After=network-online.target
Wants=network-online.target

[Service]
Type=notify
ExecStart=/usr/local/bin/flanneld -iface={{ NODEIP }} -etcd-endpoints={{ ETCD_ENDPOINTS}} -etcd-prefix={{ FLANNEL_ETCD_PREFIX }}
Restart=on-failure

[Install]
WantedBy=multi-user.target
RequiredBy=docker.service